import https from '@/plugins/luch-request_0.0.7/request'

// 最近更新
export const getNewestData = data => https.get('/apihkds/api/source_material/get_newest_data', data)

// 客户数据
export const getUserAnalysisData = data => https.get('/apihkds/api/stats/user-data-analysis', data)

// 数据总览
export const getAnalysisData = data => https.get('/apihkds/api/stats/data-analysis', data)

// 客户活跃度
export const getActivityData = data => https.get('/apihkds/api/stats/user-activity', data)

// 客户行为统计
export const getAnalysisTotal = () => https.get('/apihkds/api/stats/analysis-total')

// 案例上架列表
export const getCaseList = data => https.get('/apihkds/api/case/put_on_list', data)

export const getArticleSelectList = data => https.get('/apihkds/api/zxgl/select_hk_list', data)
export const getCaseSelectList = data => https.get('/apihkds/api/case/select_hk_list', data)

// 获客工具信息
export const getToolInfo = data => https.post('/apihkds/api/tool/toolInfo', data)
// 更新获客工具信息
export const updateToolInfo = data => https.post('/apihkds/api/tool/uploadReadFlag', data)

// 获客文章
export const getArticleList = data => https.get('/apihkds/api/zxgl/hk_new_list', data)
// 获客案例上架
export const getCaseWinList = data => https.get('/apihkds/api/case/hk_new_list', data)
// 发圈素材
// export const getPlatformMaterialList = (data) => get('/apihkds/api/resource_material/public_decorate_list', data);
export const getMaterialList = data => https.get('/apihkds/api/resource_material/list', data)
export const getInviteShopMaterialList = data => https.get('/apihkds/api/resource_material/public_list', data)
export const getMaterialDetail = data => https.get('/apihkds/api/resource_material/detail', data)
export const postAddMaterial = data => https.post('/apihkds/api/resource_material/add', data)
export const postEditMaterial = data => https.post('/apihkds/api/resource_material/edit', data)
export const postDelMaterial = data => https.post('/apihkds/api/resource_material/del', data)
export const downloadPoster = data => https.post('/apihkds/api/resource_material/call_back', data)

// 推给团队
export const pushTeamNum = data => https.post('/apihkds/api/expand-work/index', data)

/** 我的任务 */
export const getTaskList = data => https.get('/apihkds/api/expand-work/list', data)
// 我的任务统计
export const getTaskStatistics = data => https.get('/apihkds/api/expand-work/count-data', data)
// 任务详情
export const getTaskDetail = data => https.get('/apihkds/api/expand-work/detail', data)
// 任务详情列表
export const getTaskDetailList = data => https.get('/apihkds/api/expand-work/detail-list', data)
// 完成任务
export const confirmTask = data => https.post('/apihkds/api/expand-work/finishWork', data)

/** 推广记录 */
// 推广列表
export const getExpandList = data => https.get('/apihkds/api/expand/list', data)
// 推广详情
export const getExpandDet = data => https.get('/apihkds/api/expand/detail', data)

// ==员工数据总览==
export const getBossData = data => https.get('/apihkds/api/boss/data_screen', data)

// 员工数据概览
export const overviewData = data => https.get('/apihkds/api/boss/data_overview', data)

// 员工排行
export const employeeData = data => https.get('/apihkds/api/boss/employee_rank', data)

// 预约单来源
export const prebookData = data => https.get('/apihkds/api/boss/prebook_screen', data)

// 文章详情
export const zxglGetdetail = (data) => {
	return https.get('/apihkds/api/zxgl/getdetail', data)
}

// 下级会员
export const getuserrelevant = data => https.get('/apihkds/api/user/juniorMember', data)

// 获客大师邀请开店我的下级
export const getJuniorList = data => https.get('/apihkds/api/user/juniorList', data)

// 邀请开店 --shijia 2020-09-04
export const addInviteShop = data => https.post('/apihkds/api/user/addInviteShop', data)
